/* 
 实名认证、修改个人信息等

 */

import http from '../request.js'

// 改绑手机号
export function alterPhoneNumber(data){
	return http({
		url:'/nurse/alterPhoneNumber',
		method:"post",
		data:data
	})
}
// 信息
export function myMessage(data){
	return http({
		url:'/nurse/myMessage',
		method:"get",
		data:data
	})
}
// 反馈
export function feedback(data){
	return http({
		url:'/nurse/feedback',
		method:"post",
		data:data
	})
}
// 护士ID查询护士信息
export function selectNurseByNurseId(data){
	return http({
		url:'/nurse/nurse',
		method:"get",
		data:data
	})
}
// 根据用户查询护士
export function selectNurseDetailByUserId(data){
	return http({
		url:'/nurse/nurse/nurseDetail',
		method:"get",
		data:data
	})
}

export function selectRiderInfoCheckByNurseId(data){
	return http({
		url:'/nurse/nurse/selectRiderInfoCheckByNurseId',
		method:"get",
		data:data
	})
}
// 更新护士个人信息
export function updateNurseDetailById(data){
	return http({
		url:'/nurse/nurse/updateNurseDetailById',
		method:"post",
		data:data
	})
}
// 实名认证
export function realNameAuthentication(data){
	return http({
		url:'/nurse/realNameAuthentication',
		method:"post",
		data:data
	})
}
// 查询护士电话
export function selectMobileByNurseId(data){
	return http({
		url:'/nurse/selectMobileByNurseId',
		method:"get",
		data:data
	})
}
// 查询护士信息
export function selectNurseDetail(data){
	return http({
		url:'/nurse/selectNurseDetail',
		method:"get",
		data:data
	})
}
// 更新护士
export function updateNurse(data){
	return http({
		url:'/nurse/updateNurse',
		method:"post",
		data:data
	})
}
//修改头像昵称
export function updateNurses(data){
	return http({
		url:'/nurse/updateNurses',
		method:"post",
		data:data
	})
}
// 修改登录密码
export function updatePassword(data){
	return http({
		url:'/nurse/updatePassword',
		method:"post",
		data:data
	})
}

// 上传反馈图片
export function uploadFeedbackPicture(data){
	return http({
		url:'/nurse/uploadFeedbackPicture',
		method:"post",
		data:data
	})
}

//获取验证码  type: 1修改手机号 2修改登录密码 3提现 4注册
export function sms(data){
	return http({
		url:'/nurse/login/sms',
		method:"post",
		data:data
	})
}

// 判断验证码是否正确 
export function checkSms(data){
	return http({
		url:'/nurse/login/checkSms',
		method:"post",
		data:data
	})
}

// 护士实名上传身份证
export function idCardCheck(data){
	return http({
		url:'/nurse/idCardCheck',
		method:"GET",
		data:data
	})
}

// 护士实名人脸验证
export function faceCheck(data){
	return http({
		url:'/nurse/faceCheck',
		method:"GET",
		data:data
	})
}

// 获取最新版本...
export function getNewVersion(data){
	return http({
		url:'/version/getNewVersion',
		method:"GET",
		data:data
	})
}

// 注销账户
export function writeOff(data){
	return http({
		url:'/nurse/writeOff',
		method:"POST",
		data:data
	})
}
export function writeOffSendCode(data){
	return http({
		url:'/nurse/writeOffSendCode',
		method:"POST",
		data:data
	})
}
export function writeOffJudge(data){
	return http({
		url:'/nurse/writeOffJudge',
		method:"GET",
		data:data
	})
}


// 根据护士编号查询护士vip信息
export function selectNurseVipByNurseId(data){
	return http({
		url:'/nurse/vip/selectNurseVipByNurseId',
		method:"GET",
		data
	})
}



// 领取护理包
export function getNurseBag(data){
	return http({
		url:'/nurse/vip/getNurseBag',
		method:"post",
		data
	})
}
